<!--<!DOCTYPE html>-->
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<!--<input type="text" placeholder="搜索词" id="kw" />
		<input type="button" value="搜索" onclick="search()" />-->
		
		<div id="jddata"></div>
		
		
		<script>
    //https://api.douban.com/v2/movie/in_theaters?callback=dbdata
//  function search(){
//      var jdscripts = document.getElementsByClassName("jdscript");
//
//      for(var i=0;i<jdscripts.length;i++){
//          jdscripts[i].parentNode.removeChild(jdscripts[i]);
//      }
//
//      jddata.innerHTML = "";
//      var jdjs = document.createElement("script");
//      jdjs.className = "jdscript";
//      jdjs.src = "https://x.jd.com/Search?callback=jQuery8498869&area=1&enc=utf-8&keyword=%E8%BF%9E%E8%A1%A3%E8%A3%99%E5%A5%B3%E5%86%AC%E6%BD%AE%E5%AD%A6%E9%99%A2%E9%A3%8E&adType=7&page=2&ad_ids=291%3A36&xtest=new_search&_=1516264408442";
//      document.body.appendChild(jdjs);
//  }

    function getjddata(data){
        var datas;
        for(var d in data){
            datas = data[d];
        }

        for(var i=0;i<datas.length;i++){
            var d = datas[i];
            var newp = document.createElement("p");
            newp.innerHTML = d.ad_title;
            console.log(d.ad_title)
            jddata.appendChild(newp);
        }
    }
</script>
<script src="https://x.jd.com/Search?callback=getjddata&area=1&enc=utf-8&keyword=%E9%B2%9C%E8%8A%B1&adType=7&page=2&ad_ids=291%3A33&xtest=new_search&_=1517031049354"></script>
	</body>
</html>
